﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KnBinarySerializer.Tests
{
    internal class TimeMeasurer
    {
        public static TimeSpan Run(Action func) {
            var startTime = DateTime.Now;
            func();
            var sp = DateTime.Now - startTime;
            return sp;
        }
    }
}
